package com.example.zk2

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

object ImageBinding {
    @JvmStatic
    @BindingAdapter("img_url")
    fun imageBinding(view:ImageView,url:String?){
        if(url!=null){
            GlideUtils.loadPic(view.context,url,view)
        }
    }
}